﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NC.Cather
{
    /// <summary>
    /// 新闻基类
    /// </summary>
    public class BaseEntity
    {
        public BaseEntity()
        {
            this.CreatedAt = DateTime.Now;
        }
        /// <summary>
        /// 默认为int型主键
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
    }
}
